package org.dolphin.dao;

import java.io.Serializable;
import java.util.List;
import org.dolphin.base.bean.UserVO;
import org.dolphin.entity.security.User;
import org.hibernate.criterion.Order;

public interface UserDao {
  public User fetchUser(Serializable id);

  public User fetchUserByUsername(String username);

  public User getActiveUser();

  public Long getUserCount();

  public List<UserVO> getUsers(int firstResult, int maxResults, List<Order> orders);

  public User loadUser(Serializable id);

  public void saveUser(User user);

  public void updateUser(User user);
}
